module.exports = {
  transpileDependencies: [
    'vuetify'
  ],
  devServer: {
    host: '127.0.0.1', // 本地
    open: true,
    port: 8082, // 本地开放端口
    overlay: true,
    headers: {
      'Access-Control-Allow-Origin': '*'
    },
    hotOnly: false,
    disableHostCheck: true,
    proxy: {
      '/api': {
        target: 'http://www.spiderman.fun:8081', // 目标服务器，api请求地址(https和http要区分)
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/'
        }
      }
    }
  }
}
